<template>
	<view>
		<tm-app>
			<view class="pa-32">
				<tm-html :content="noticeInfo"></tm-html>
			</view>
		</tm-app>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				noticeInfo: ''
			}
		},
		onLoad(option) {

			console.log(option)
			this.getNotice(option);
		},
		methods: {
			getNotice(id) {
				let urlId = id.id;
				
				uni.request({
					url: "/app/cm/" + urlId + "/getNotice.do",
					method: 'GET',
					header: { // 设置请求的header
						'content-type': 'application/json', // 指定请求头，比如设置Content-Type
					},
					success: (res) => {
						let requ = res.data.data;
						this.noticeInfo=requ.content;
						
						// 在请求成功时返回的数据
					}

				})
				
			}
		}
	}
</script>

<style>

</style>